# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
pkgname=pstree
pkgver=2.39
pkgrel=1
pkgdesc="A small tool to list processes as a tree"
url="http://www.thp.uni-duisburg.de/pstree/"
arch="all"
license="GPL"
depends="!psmisc" # also provides pstree
subpackages="$pkgname-doc"
source="ftp://ftp.thp.uni-duisburg.de/pub/source/$pkgname-$pkgver.tar.gz"

build() {
	${CC:-gcc} ${CFLAGS} -o "$srcdir"/$pkgname \
		"$srcdir"/$pkgname.c || return 1
}

package() {
	install -Dm755 "$srcdir"/$pkgname \
		"$pkgdir"/usr/bin/$pkgname || return 1
	install -Dm644 "$srcdir"/$pkgname.1 \
		"$pkgdir"/usr/share/man/man1/$pkgname.1 || return 1
}

sha512sums="31ec81b4adb563068a3006312e1e42b026d41107c7756c54f8b38d143b32426fc702602c7eb925a55c62be5cb3ef7d562e6ba032ec7a0788d0c45f5d5b5b0662  pstree-2.39.tar.gz"
